﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<div class="search right">
    <form action="Search.cntv" method="post" id="formHeaderSearch">
        <input type="button" id="txtHeaderSearch" name="txtHeaderSearch" class="search_btn right" onclick="return OnNewsSearch();" />
        <input type="text" class="search_text" value="Search" onkeypress="OnKeySearch();" onblur="if(this.value=='') this.value=this.defaultValue" onfocus="if(this.value==this.defaultValue) this.value=''" />
    </form>
</div>
<script type="text/javascript">
    function OnNewsSearch() {
        if ($("#txtHeaderSearch").val() == "")
            return false;
        return true;
    }
    function OnKeySearch() {
        /*
        function noNumbers(e)
{
var keynum
var keychar
var numcheck

if(window.event) // IE
{
keynum = e.keyCode
}
else if(e.which) // Netscape/Firefox/Opera
{
keynum = e.which
}
keychar = String.fromCharCode(keynum)
numcheck = /\d/
return !numcheck.test(keychar)
}
        */
    }
</script>